/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package pradoeditor.projectexplorer.menu;

import javax.swing.JPopupMenu;
import pradoeditor.comun.ItemProject;

/**
 *
 * @author jaime
 */
public abstract class PopupMenu extends JPopupMenu
{
    private ItemProject itemProject;
    
    abstract void setInitSubMenu();

    /**
     * @return the itemProject
     */
    public ItemProject getItemProject()
    {
        return itemProject;
    }

    /**
     * @param itemProject the itemProject to set
     */
    public void setItemProject(ItemProject itemProject)
    {
        this.itemProject = itemProject;
        setInitSubMenu();
    }     
}
